package com.zq.assistant.func.apifactory.invocationhandler;

import com.zq.assistant.func.apifactory.annotation.HttpMethod;
import com.zq.assistant.func.apifactory.annotation.Mode;
import com.zq.assistant.func.apifactory.callback.ResultCallback;

import java.util.ArrayList;

/**
 * Created by zhangqiang on 2016/8/3.
 */
public class HttpRequest {

    private String url;

    private HttpMethod httpMethod;

    private Mode mode;

    private ArrayList<HttpParam> params;

    private Object tag;

    private ResultCallback callback;

    private Class callbackGenericClass;

    private Class callbackGenericClass2;

    private Class returnClass;

    private Class returnGenericClass;

    public String getUrl() {
        return url;
    }

    public HttpMethod getHttpMethod() {
        return httpMethod;
    }

    public Mode getMode() {
        return mode;
    }

    public ArrayList<HttpParam> getParams() {
        return params;
    }

    public Object getTag() {
        return tag;
    }

    public ResultCallback getCallback() {
        return callback;
    }

    public Class getCallbackGenericClass() {
        return callbackGenericClass;
    }

    public Class getCallbackGenericClass2() {
        return callbackGenericClass2;
    }

    public Class getReturnClass() {
        return returnClass;
    }

    public Class getReturnGenericClass() {
        return returnGenericClass;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setHttpMethod(HttpMethod httpMethod) {
        this.httpMethod = httpMethod;
    }

    public void setMode(Mode mode) {
        this.mode = mode;
    }

    public void setParams(ArrayList<HttpParam> params) {
        this.params = params;
    }

    public void setTag(Object tag) {
        this.tag = tag;
    }

    public void setCallback(ResultCallback callback) {
        this.callback = callback;
    }

    public void setCallbackGenericClass(Class callbackGenericClass) {
        this.callbackGenericClass = callbackGenericClass;
    }

    public void setCallbackGenericClass2(Class callbackGenericClass2) {
        this.callbackGenericClass2 = callbackGenericClass2;
    }

    public void setReturnClass(Class returnClass) {
        this.returnClass = returnClass;
    }

    public void setReturnGenericClass(Class returnGenericClass) {
        this.returnGenericClass = returnGenericClass;
    }


}
